

************ Packages and versions required******************

//--> FOR MOST RELIABLE REPRODUCTION OF RESULTS, USE STATA 15 
//--> INSTALL: putexcel, outreg2, randcmd, cgmwildboot, cgmreg PACKAGES
//--> ADO FILES: RUN cgmwildboot.ado, cgmreg,ado, randcmd.ado FIRST

**************************************************************


//--> PATH NAME
	**********************************************************************************************************************************************************************
		
		global main "XXXX/Replication"  //--> SET YOUR OWN PATH HERE
		global data "$main/Data"
		global output "$main/Output"

	**********************************************************************************************************************************************************************

	
	
//--> DATA CLEANING AND PROCESSING FOR OUTPUT TABLES
	**********************************************************************************************************************************************************************
			
	//--> PRIMARY OUTCOME VARS (MICROCREDIT OUTCOMES)
		***************************************************
		
		//--> PREPARES FA-LEVEL BONUS PERIOD PERFORMANCE VARS ON CREDIT OUTCOMES (USING MIS DATA)
		
			do "$main/DoFiles/Credit_FA_level_vars.do"

			
			
	//--> PRIMARY OUTCOME VARS (SOCIAL OUTCOMES)
		***************************************************
		
		//--> PREPARES FA-LEVEL BONUS PERIOD PERFORMANCE VARS ON SOCIAL MOBILIZATION OUTCOMES (USING MPRS DATA)
		
			do "$main/DoFiles/Social_FA_level_vars.do"
			
			
			
	//--> BASELINE OUTCOME VARS (CHARACTERISTICS AND CREDIT OUTCOMES)
		***************************************************	
		
		//--> PREPARES FA-LEVEL PRE BONUS PERFORMANCE AND CHARACTERISTICS VARS (USING MIS AND SURVEY DATA)
		
			do "$main/DoFiles/Baseline_FA_level_vars.do"
			
			
			
	//--> SECONDARY OUTCOME VARS (SUPERVISOR EVALUATION OF FAS)
		***************************************************	
		
		//--> PREPARES FA-LEVEL SUPERVISOR PERFORMANCE EVALUATION (USING SURVERVISOR SURVEY)
		
			do "$main/DoFiles/Eval_FA_level_vars.do"
		
	**********************************************************************************************************************************************************************
	
	
	
	
//--> OUTPUT TABLES & GRAPHS
	**********************************************************************************************************************************************************************
		
	//--> DESCRIPTIVE STATS AND BALANCE CHECKS
	//--> RESULTS: Table 1, Table D.1, Table D.3, Table D.4, Table D.5, Table D.6
		***************************************************
		
			do "$main/DoFiles/Balance_FA_level_output.do"

			
			
	//--> MICROCREDIT OUTCOMES
	//--> RESULTS: Table 2, Table C.2 (Panel A), Table C.3 (Cols. 1 and 3)
		***************************************************	
		
			do "$main/DoFiles/Credit_FA_level_output.do"

			
			
	//--> SOCIAL MOBILIZATION OUTCOMES
	//--> RESULTS: Table 3, Table C.2 (Panel B), Table C.3 (Col. 2)
		***************************************************	
		
			do "$main/DoFiles/Social_FA_level_output.do"	
			
			
	//--> CLIENT EMPOWERMENT OUTCOMES
	//--> RESULTS: Table 4, Table D.2
		***************************************************	
		
			do "$main/DoFiles/Social_client_level_output.do"	
						
		
	//--> MOTIVATION OUTCOMES
	//--> RESULTS: Table 5
		***************************************************	
		
			do "$main/DoFiles/Motivation_FA_level_output.do"	
						
				
	//--> MPRS CO SELECTION TEST
	//--> RESULTS: Table C.1
		***************************************************	
		
			do "$main/DoFiles/MPRSSelection_COmth_level_output.do"					

			
	//--> MULTIPLE HYPOTHESIS ADJUSTED P-VALS
	//--> RESULTS: Table C.3 (Cols. 4 and 5)
		***************************************************	
		
			do "$main/DoFiles/RI_adjusted_pvalues_output.do"					

			
			
	//--> SUPERVISOR SUBJECTIVE EVALUATION OUTCOMES & EFFORT
	//--> RESULTS: Table C.4, Table C.5
		***************************************************	
		
			do "$main/DoFiles/Eval_FA_level_output.do"					
	
	
	
	//--> BONUS IMPLEMENTATION QUALITY
	//--> RESULTS: Table C.6
		***************************************************	
		
			do "$main/DoFiles/bonus_implementation_output.do"			
		
		
		
	//--> BONUS INCIDENCE FIGURES
	//--> RESULTS: Figure C.1
		***************************************************	
	
			do "$main/DoFiles/bonus_incidence_graph.do"			

					
		
	//--> DIFFERENTIAL EFFECTS BY PARTNERSHIP
	//--> RESULTS: Figure E.1, Table E.1, Table E.2
		***************************************************	
	
			do "$main/DoFiles/Partnership_FA_level_output"			

			
